const fs = require("fs")

function render(res,data,type=""){
  res.writeHead(200, {"Content-Type": `${type?type:"application/json"};charset=utf8`})
  res.write(data)
  res.end()
}
const apiRouter = {
  "/api/login": (res)=> {
    render(res,`{ok:1}`)
  }
}


module.exports = apiRouter